<?php

namespace app\common\model;

use app\model\MyException;
use app\model\Tool;
use app\model\需要清除缓存的表的主键id的值;
use service\RedisService;
use think\App;
use think\facade\Db;
use \think\Model;
use function think\p;

/**
 * 所有数据库表实例化的model都必须继承这个model
 * Class BaseModel
 * @package app\model
 */
class BaseModel extends Model
{
    /**
     * @return BaseModel
     */
    public static function instance()
    {
        return new static();
//        $class = get_called_class();
//        return new $class();
    }
}
